package com.shishi.fast.generator.controller;

import com.shishi.fast.common.annotation.ReqPermissions;
import com.shishi.fast.generator.service.DeviceMaintainService;
import com.shishi.fast.generator.vo.DeviceMaintainRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
 * @Author mm
 * @Date 2023/10/1 23:39
 * @Description
 */
@RestController
@RequestMapping("deviceMaintain")
public class DeviceMaintainController {

    @Autowired
    private DeviceMaintainService deviceMaintainService;

    /**
     * @Description: 造数据
     * @param:
     * @return:
     */
    @ReqPermissions(operation = "造数据", isLog = true)
    @PostMapping("generateData")
    public void generateData(@Valid @RequestBody DeviceMaintainRequest.GenerateDataParam param, HttpServletRequest request) {
        deviceMaintainService.generateData(param);
    }

}
